package com.linln.admin.bank.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.linln.admin.bank.domain.Clue;
import com.linln.admin.system.repository.BaseRepository;

/**
 * @author kome
 * @date 2020/08/08
 */
public interface ClueRepository extends BaseRepository<Clue, Long> {

    @Modifying
    @Transactional
    @Query("update #{#entityName} set complete_status = ?1, assign_status= ?1  where id in ?2")
    Integer updateCompleteStatus(int status, List<Long> idList);
}
